package com.himore.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 * 
 * @author dongwang
 */
@SpringBootApplication
@EnableScheduling
public class MoApiApplication  extends SpringBootServletInitializer {
    public static void main(String[] args){
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(MoApiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  混世模王启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(MoApiApplication.class);
    }
}
